const Layout = () => import('@/layout/index.vue')

export default {
  name: 'Manage',
  path: '/manage',
  component: Layout,
  redirect: '/manage/manage_user',
  meta: {
    title: '后台管理',
    icon: 'uil:pagelines',
    role: ['admin'],
    requireAuth: true,
    order: 3,
  },
  children: [
    {
      name: 'ManageUser',
      path: 'manage_user',
      component: () => import('./manage-user/index.vue'),
      meta: {
        title: '后台用户管理',
        icon: 'ic:baseline-table-view',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
    {
      name: 'ManageRole',
      path: 'manage_role',
      component: () => import('./manage-role/index.vue'),
      meta: {
        title: '后台角色管理',
        icon: 'ic:baseline-table-view',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true
      }
    },
    {
      name: 'ParamConfig',
      path: 'param_config',
      component: () => import('./param-config/index.vue'),
      meta: {
        title: '参数配置',
        icon: 'ic:baseline-table-view',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
    {
      name: 'LoginLog',
      path: 'login_log',
      component: () => import('./login-log/index.vue'),
      meta: {
        title: '后台登录日志',
        icon: 'ic:baseline-table-view',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
    {
      name: 'LoginStatistics',
      path: 'login_statistics',
      component: () => import('./login-statistics/index.vue'),
      meta: {
        title: '后台登录统计',
        icon: 'ic:baseline-table-view',
        role: ['admin'],
        requireAuth: true,
        keepAlive: true,
      },
    },
  ],
}
